package com.liang.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author liangben
 * @date 2022/4/12 23:54
 */
@FeignClient(name = "provider-payment",fallbackFactory = PayServiceFallbackFactory.class)
@RequestMapping("/provider-payment/config")
@Component
public interface PayService {

    @GetMapping("/sayHi")
    String sayHi();

    @GetMapping("/viewConfig")
    String viewConfig();
}
